/**
 * 
 */
package com.guoxin.chapter2.innerclass;

import com.guoxin.chapter2.innerclass.PublicClass.PrivateClass;

/**
 * @author guoxin
 * @date 2019年8月20日
 */
public class Run {
	public static void main(String[] args) {
		PublicClass publicClass = new PublicClass();
		publicClass.setUsername("usernameValue");
		publicClass.setPassword("passwordValue");
		System.out.println(publicClass.getUsername() + " " + publicClass.getPassword());

		//实例化内置类
		PrivateClass privateClass = publicClass.new PrivateClass();
		privateClass.setAge("ageValue");
		privateClass.setAddress("addressValue");
		System.out.println(privateClass.getAge() + " " + privateClass.getAddress());
	}
}
